package com.bing.bingPro.util;

public class DateConversion {

    public static String convertToYYYYMM(String input) {
        if (input == null || input.length() != 6) {
            throw new IllegalArgumentException("Invalid input: " + input);
        }

        String year = input.substring(0, 4);
        String month = input.substring(4, 6);

        return year + "-" + month;
    }
}
